import 'package:business_render/pages/did_change_dependencies_page.dart';
import 'package:business_render/pages/did_update_widget_page.dart';
import 'package:business_render/pages/stateful_page.dart';
import 'package:business_render/routes/render_routes.dart';
import 'package:flutter/cupertino.dart';
import 'package:lib_core/lib_core.dart';

class RenderPages {
  RenderPages._();

  static final Map<String, FlutterBoostRouteFactory> renderPages = {
    RenderRoutes.didUpdateWidget: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          final arguments = setting.arguments as Map<String, dynamic>?;
          return const DidUpdateWidgetPage();
        })),
    RenderRoutes.didChangeDependencies: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          final arguments = setting.arguments as Map<String, dynamic>?;
          return const DidChangeDependenciesPage();
        })),
    RenderRoutes.stateful: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          final arguments = setting.arguments as Map<String, dynamic>?;
          return const StatefulPage();
        })),
  };
}
